//
// Created by wujehy on 2020/5/16.
//

#ifndef TESTSERVER_EVENTMANAGER_H
#define TESTSERVER_EVENTMANAGER_H

#include "BaseBusiness.h"

class EventManager
{
private:
    std::map<int, BaseBusiness *> modMap;

public:
    EventManager();

    virtual ~EventManager();

    int dispatchMod(
            int mod_type, int type_sub, int taskid, const TcpConnPtr &con, uint8_t *protoData, int datalen,
            void *userdata = nullptr);

};


#endif //TESTSERVER_EVENTMANAGER_H
